﻿{% extends "layout/base.html" %}
{% block content %}

<h1>Inscription</h1>

<form action="/register/" method="post" id="register_form">

	<!--{% for field in form %}
        <div class="fieldWrapper"> 
            <p>{{ field.label_tag }}: {{ field }}</p>
			<p>{{ field.help_text }}</p>
			<p>{{ field.errors }}</p>
        </div>
    {% endfor %}
	-->
	<div class="fieldWrapper"> 
		<p><label>{{ form.username.label }} <span class="required">*</span> : </label> {{ form.username }} 
		{% for error in form.username.errors %}<span class="error">{{ error }}</span>{% endfor %}</p>
		<p class="comm">30 caractères maximum. Uniquement des lettres, nombres et les caractères « @ », « . », « + », « - » et « _ ».</p>
	</div>
	<div class="fieldWrapper"> 
		<p><label>{{ form.first_name.label }} :</label> {{ form.first_name }}
		{% for error in form.first_name.errors %}<span class="error">{{ error }}</span>{% endfor %}</p>	
	</div>
	<div class="fieldWrapper"> 
		<p><label>{{ form.last_name.label }} :</label> {{ form.last_name }}
		{% for error in form.last_name.errors %}<span class="error">{{ error }}</span>{% endfor %}</p>	
	</div>
	<div class="fieldWrapper"> 
		<p><label>Email :</label> {{ form.email }} 
		{% for error in form.email.errors %}<span class="error">{{ error }}</span>{% endfor %}</p>		
	</div>
	<div class="fieldWrapper"> 
		<p><label>{{ form.password.label }}<span class="required">*</span> :</label> {{ form.password }} 
		{% for error in form.password.errors %}<span class="error">{{ error }}</span>{% endfor %}</p>
		<!--<p class="comm">{{ form.password.help_text }}</p>	-->
	</div>
	
	<p class="p_required">* Champs obligatoires</p>
	<p class="submit"><input type="submit" class="submit_search" value="S'inscrire" /><p>
</form>

{% endblock content %}
